# -*- coding: utf-8 -*-
## TODO: Hijax this page and/or integrate an ajax version in base.mako

<%inherit file="/base.mako"/>

<%def name="css()">
  ${parent.css()}
  ${self.css_link('feedback')}
</%def>

<%def name="dom_onLoad()">
  ${parent.dom_onLoad()}
  $("#comment").focus();
</%def>


<h1> Feedback: your opinion interests us! </h1>

<form action="${url('feedbacks')}" method="post" id="feedbackform">
  <fieldset id="feedbackformfieldset">
    <div id="feedback_urlwrapper">
      <label id="lurl" for="url"> URL: </label>
      <input type="text" id="url" name="url" class="required" 
             maxlength="255" value="${c.url}"/>
    </div>
    
    <div id="feedback_commentwrapper">
      <label id="lcomment" for="comment">Your comment:</label>
      <textarea id="comment" name="comment" class="required" 
      rows="20" cols="50"></textarea>
    </div>
    
    <input type="submit" id="feedbackformsubmit" name="feedbackformsubmit" 
           value="Send it!" />
  </fieldset>
</form>
